package com.ai.demo.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 会话历史记录(spring_ai_chat_record)实体类
 *
 * @author kancy
 * @since 2025-08-01 00:05:11
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("spring_ai_chat_record")
public class SpringAiChatRecord extends Model<SpringAiChatRecord> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 会话id
     */
    @TableId
	private String id;
    /**
     * title
     */
    private String title;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * chat:聊天机器人；service：智能客服；pdf：个人知识库
     */
    private String type;
    /**
     * 会话创建时间
     */
    private LocalDateTime createTime;

}